#ifndef ITEMINT_H
#define ITEMINT_H

#include "../ConfigItem.h"

class ItemInt : public ConfigItem {
    Q_OBJECT
public:

    int get();
    void set(const int &value);
protected:
    QWidget *createWidget(WidgetStyle s = WidgetStyle::Default) override;
    void update(QWidget *widget, UpdateOption option) override;
    void writeToData(QDataStream &stream) const override;
    void readFromData(QDataStream &stream) override;
private:
    int m_data = 0;
};

#endif // ITEMINT_H
